import request from '@/utils/request'

// 设置自动补货工单阈值
export const autoConfig = (data) => {
  return request({
    url: '/api/task-service/task/autoSupplyConfig',
    method: 'POST',
    data
  })
}

// 新增合作商
export const addPartner = (data) => {
  return request({
    url: '/api/user-service/partner',
    method: 'POST',
    data
  })
}

// 修改合作商

export const changePartner = (data) => {
  return request({
    url: `/api/user-service/partner/${data.id}`,
    method: 'PUT',
    data
  })
}
